﻿@{
    ViewBag.Title = "ReservationDetil";
}

@using WeiXinWeb.Models

<div data-role="page">
    <div data-role="header" data-theme="b">
        <a href="#" data-rel="back" data-icon="back" data-theme="e">返回</a>
        <h1>预约详情</h1>
    </div>
    <div data-role="content">
        <div data-role="collapsible" data-collapsed="false">
            <h4 data-theme="b">进口</h4>
            <ul data-role="listview">
                @{
                    var itemWX = (List<WeiXinRes>)ViewBag.Import;
                    if (itemWX.Count > 0)
                    {
                        foreach (var item in itemWX)
                        {
                            <li>
                                <div>
                                    <p>门点：@(((InConsignationDetail)item.Orderobjce).Address)</p>
                                    <p>箱型：@(((InConsignationDetail)item.Orderobjce).CntType)</p>
                                    <p>送货截止日期:@(((InConsignationDetail)item.Orderobjce).inconsig.DeliverDate)</p>
                                    <p>运费报价：@item.ownerPrice</p>
                                    <p>最晚提箱时间：@item.LastDt</p>
                                    <p>预约时间：@item.ResverTime</p>
                                    
                                </div>
                                <span class="ui-li-count">
                                    @if (item.Isselect == 0)
                                    { 
                                      @Html.Raw("审核中")
                                    }
                                    else if (item.Isselect == 1)
                                    { 
                                      @Html.Raw("审核通过")
                                    }
                                    else if(item.Isselect==2)
                                    {
                                      @Html.Raw("审核失败")
                                    }
                                </span>
                            </li>
                        }
                    }
                    else
                    {
                        <li>没有信息记录</li>
                    }
                }
            </ul>
        </div>
        <div data-role="collapsible" data-collapsed="false">
            <h4 data-theme="b">出口</h4>
            <ul data-role="listview">
                @{
                    var itemsWX = (List<WeiXinRes>)ViewBag.Outport;
                    if (itemsWX.Count > 0)
                    {
                        foreach (var item in itemsWX)
                        {
                            <li>
                                <div>
                                    <p>门点：@(((OutConsignationDetail)item.Orderobjce).Address)</p>
                                    <p>卸货截止日期:@(((OutConsignationDetail)item.Orderobjce).outconsig.TakeCntDT)</p>
                                    <p>运费报价：@item.ownerPrice</p>
                                    <p>箱号:@item.cntnum</p>
                                    <p>最晚抵达门点时间：@item.LastDt</p>
                                    <p>预约时间：@item.ResverTime</p>
                                </div>
                                <span class="ui-li-count">
                                    @if (item.Isselect == 0)
                                    {
                                        @Html.Raw("审核中")
                                    }
                                    else if (item.Isselect == 1)
                                    {
                                        @Html.Raw("审核通过")
                                    }
                                    else if (item.Isselect == 2)
                                    {
                                        @Html.Raw("审核失败")
                                    }
                                </span>
                            </li>
                        }
                    }
                    else
                    {
                        <li>没有信息记录</li>
                    }
                }
            </ul>
        </div>
    </div>
</div>
